import request from '@/utils/http';

export const rechargeListApi = (data: object = {}) => {
  return request.post('/recharge/list', data);
};

export const rechargeApproveApi = (data: object = {}) => {
  return request.post('/recharge/approve', data);
};

export const rechargeRejectApi = (data: object = {}) => {
  return request.post('/recharge/reject', data);
};

export const rechargeRevokeApi = (data: object = {}) => {
  return request.post('/recharge/revoke', data);
};

export const withdrawListApi = (data: object = {}) => {
  return request.post('/withdraw/list', data);
};

export const withdrawApproveApi = (data: object = {}) => {
  return request.post('/withdraw/approve', data);
};

export const withdrawRejectApi = (data: object = {}) => {
  return request.post('/withdraw/reject', data);
};

export const withdrawRevokeApi = (data: object = {}) => {
  return request.post('/withdraw/revoke', data);
};
